<template>
  <div class="outer">
    <div class="wrapper">
      <div>
        <h1 class="title">小米智能生活</h1>
        <div class="sub_title">好简单</div>
      </div>
      <div class="play-btn" @click="showVideo">
        <img src="../assets/imgs/play.png" alt="" class="icon" />
      </div>
      <div class="desc" style="font-size: 0.875rem">
        好科技，为生活，更人性。
      </div>
    </div>
  </div>
</template>

<script>
import { mapState, mapMutations } from "vuex";
export default {
  methods: {
    ...mapMutations(["showVideo"]),
  },
};
</script>

<style lang="less" scoped>
.outer {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  .wrapper {
    width: 80vw;
    height: 40vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: space-between;
    h1 {
      font-size: 2em;
      margin: 0.67em 0;
    }
    .title {
      font-size: 1.5625rem;
      font-weight: 500;
    }
    .sub_title {
      font-size: 5.5rem;
      font-weight: 100;
      margin-top: -0.625rem;
    }
    .play-btn {
      .icon {
        cursor: pointer;
        width: 3.5625rem;
        height: 3.5625rem;
        margin-top: 3.125rem;
        margin-bottom: 2.5rem;
      }
    }
  }
}
</style>